package com.hxzy.mapper;

import com.hxzy.common.req.StatusChangeReq;
import com.hxzy.controller.admin.dict.req.DictDataReq;
import com.hxzy.controller.admin.dict.resp.DictDataResp;
import com.hxzy.entity.SysDictData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【sys_dict_data(字典数据表)】的数据库操作Mapper
* @createDate 2024-02-21 11:30:41
* @Entity com.hxzy.entity.SysDictData
*/
public interface SysDictDataMapper extends BaseMapper<SysDictData> {

    /**
     * 根据字典类型查询数据
     * @param dictTypes
     * @return
     */
    List<DictDataResp> searchByDictTypes(@Param(value = "dictTypes") String[] dictTypes);

    /**
     * 查询
     * @param req
     * @return
     */
    List<DictDataResp> search(@Param(value = "req") DictDataReq req);


    /**
     * 导出选中的数据
     * @param ids
     * @return
     */
    List<DictDataResp> exportExcel(@Param(value = "ids") Long[] ids);
}




